package tech.aistar.day06.design.dp.version03;

/**
 * 本类用来演示: 具体的一个中介
 *
 * @author: success
 * @date: 2021/3/15 4:34 下午
 */
public class Middler extends MiddlerCompany{

    //中介应该维护的是房地产公司
    private HouseCompany houseCompany;

    public Middler(HouseCompany houseCompany){
        this.houseCompany = houseCompany;
    }

    public void find(String name){
        houseCompany.desc(name);
    }
}
